package hy.controller;

import bean.UserAddress;
import hy.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderCtrl {
    @Autowired
    OrderService service;
    @RequestMapping("/initOrder/{userId}")
    public UserAddress initOrder(@PathVariable String userId){
        return service.initOrder(userId);
    }
}